import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty, IsOptional } from "class-validator";

export class FindAllMenuDto {
    @ApiProperty({ description: "父亲id", example: -1 })//默认为-1 ，-1就是代表顶级
    @IsOptional()
    parentId: number;
    
    @ApiProperty({ description: "菜单名称", example: "用户管理" })
    @IsOptional()
    menuName: string;
    
}